package com.zjc.service;

import com.zjc.Command;

/**
 * 请求者角色类
 */
public class Invoker {
    //持有命令对象
    private Command command;
    public Invoker(){}
    public Invoker(Command command){
        this.command=command;
    }
    public  void action(){
        command.exe();
    }

}
